package com.wiscamp.ninechapters.problems.infrastructure.mappers.misc;

import com.wiscamp.ninechapters.problems.infrastructure.po.misc.EventPO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * 事件仓储对象
 *
 * @author yifeng
 */
@Repository
public interface EventMapper extends JpaRepository<EventPO, Long>, JpaSpecificationExecutor<EventPO> {
    /**
     * 分页获取习题集列表
     *
     * @param spec
     * @param pageable
     * @return
     */

    Page<EventPO> findAll(Specification<EventPO> spec, Pageable pageable);
}